package cn.wang.web.sysadmin;

import cn.wang.entity.sysadmin.User;
import com.opensymphony.xwork2.ActionSupport;
import org.apache.shiro.SecurityUtils;
import org.apache.shiro.authc.UsernamePasswordToken;
import org.apache.shiro.subject.Subject;
import org.apache.struts2.ServletActionContext;

public class LogoutAction extends ActionSupport {

	public String logout() {
		//清出subject中的缓存
	Subject subject=SecurityUtils.getSubject();
	subject.logout();
    return "login";
	}
}
